package com.happy_lab_management.demo.admin.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.happy_lab_management.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface TeacherMapper extends BaseMapper<Teacher> {
    @Select("SELECT * from teacher where user_id=#{userId}")
    Teacher selectByUserId(Integer userId);
}
